package io;

import java.io.CharArrayWriter;
import java.io.IOException;

public class CharArrayWriterDemo {

    public static void main(String[] args) throws IOException {

        CharArrayWriter w = new CharArrayWriter();

        w.write(11);
        w.write("abc");

       char[] cs = w.toCharArray();
        System.out.println(new String(cs) );
        w.close();
    }
}
